import React,{ Component } from 'react';

import './UserOne.scss';

export default class UserOne extends Component{
	constructor (props) {
		super(props)
		this.state = {
			nowType: 1
		}
	}
  render() {
    return (
      <a href={`./user?employee_id=${this.props.data.employee_id}`} className='user-one'>
        <div style={{flex: 4, display: 'flex'}}>
          <div className='user-sort'>{this.props.index + 1}</div>
          <img src={this.props.data.employee_img} alt='略略略' />
          <div className='user-name'>{this.props.data.employee_name}</div>
        </div>
        <div className='user-number' style={{flex: 1}}>{this.props.data.follow_count}</div>
      </a>
    )
  }
}
